Skip to content

logging: improve ffmpeg error message quality#37

Merged
galenlynch merged 3 commits into
mainfrom
fix/ffmpeg-error-logging
Jun 26, 2026
Merged

logging: improve ffmpeg error message quality#37
galenlynch merged 3 commits into
mainfrom
fix/ffmpeg-error-logging

Conversation

@galenlynch

Copy link
Copy Markdown
Member

Many failed upload jobs just say 'ffmpeg failed see logs.' This commit should fix that and dump the ffmpeg stderr to the calling process' log. In addition, I am surfacing the traceback for that error.

galenlynch and others added 2 commits May 20, 2026 11:56
Many failed upload jobs just say 'ffmpeg failed see logs.' This commit should
fix that and dump the ffmpeg stderr to the calling process' log. In addition, I
am surfacing the traceback for that error.
Runners that only surface str(exception) (e.g. unattended SLURM/singularity
jobs spawned via aind-data-transfer-service) previously saw only "One or
more Ffmpeg jobs failed. See error logs." with no stderr or per-job context.
Inline the formatted failure blocks into the RuntimeError so the diagnostic
info travels with the exception itself.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@galenlynch galenlynch requested a review from jtyoung84 May 20, 2026 20:28
Extract the parallel and serial execution paths into _run_parallel and
_run_serial helpers so _run_compression itself stays under flake8's
max-complexity = 10.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@galenlynch galenlynch merged commit ece17f5 into main Jun 26, 2026
4 checks passed
@galenlynch galenlynch deleted the fix/ffmpeg-error-logging branch June 26, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants